<?php
$cpt = $data['competition'];
$result = $data['competition_result'];
//dump($_ENV);
//dump($data);
?>
<!DOCTYPE html>
<html lang="zhcn">
<head>
    <include file="Common/meta" />
    <title>竞赛结果 - {$_ENV['site'][0]['title']}</title>
    <include file="Common/link" />
</head>
<body>
<header class="layout-header">
    <div class="container">
        <h1 class="title">{$cpt['title']}</h1>
        <a class="header-back" href="/competition/listPage"><i class="icon icon-left"></i></a>
    </div>
</header>
<div class="layout-body">
    <div class="container">
        <section class="article-box box-result">
            <h1 class="article-title">{$cpt['title']}</h1>
            <div class="article-info">
                <if condition="$cpt['school_id'] eq '1'">
                    <div class="author">主办方： 平台</div>
                    <else />
                    <div class="author">主办方： <a href="{$cpt['school_id']}">{$cpt['school']}</a> </div>
                </if>
                <div class="article-time">
                    发布时间：{$result['create_time']|strtotime|date='Y-m-d H:i',###}
                </div>
                <div class="article-time">
                    比赛时间：{$cpt['start_time']|strtotime|date='Y-m-d H:i',###}-{$cpt['end_time']|strtotime|date='Y-m-d H:i',###}
                </div>
                <div class="article-address">
                    地点：{$cpt['local']}
                </div>
            </div>
            <article>
                {$result['cpt_result']}
            </article>
        </section>
    </div>
</div>
<include file="Common/script" />
</body>
</html>

